package com.cds.alert.pojo;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 
 * <p>
 * <p>
 * 类描述：文件访问记录表
 * <p>
 * 作     者： migrant
 * <p>
 * 日     期： 2014年3月10日
 * <p>
 * 时     间： 上午8:50:47
 * <p>
 */
@Entity
@Table(name = "alert_alarm_session")
public class AlertAlarmSession extends IdEntity {

	/** 阅读状态, 0: 未读; 1: 已读*/
	private Integer read;
	/**日志产生时间*/
	private Date logTime;
	/**源地址*/
	private String ip;
	/**开始时间*/
	private Date startTime;
	/**结束时间*/
	private Date stopTime;
	/**主机地址*/
	private String host;
	/**源端口*/
	private Integer port;
	/**协议*/
	private ProtocolType protocol;

	/**MAC地址*/
	private String mac;
	
	/**关联的用户名*/
	private String username;
	/**关联的机构名*/
	private String groupname;
	
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getGroupname() {
		return groupname;
	}

	public void setGroupname(String groupname) {
		this.groupname = groupname;
	}
	
	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}
	
	public Integer getRead() {
		return read;
	}

	public void setRead(Integer read) {
		this.read = read;
	}
	
	public Date getLogTime() {
		return logTime;
	}

	public void setLogTime(Date logTime) {
		this.logTime = logTime;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getStopTime() {
		return stopTime;
	}

	public void setStopTime(Date stopTime) {
		this.stopTime = stopTime;
	}

	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public Integer getPort() {
		return port;
	}

	public void setPort(Integer port) {
		this.port = port;
	}

	public ProtocolType getProtocol() {
		return protocol;
	}

	public void setProtocol(ProtocolType protocol) {
		this.protocol = protocol;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
